<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D变换</title>
    <style>
        div {
            background-color: orange;
            width: 200px;
            height: 200px;
            transition: all 1s;

        }

        .xz:hover {
            transform: rotate(45deg);
        }

        .py:hover {
            transform: translate(100px, 50px);
        }

        .sf:hover {
            transform: scale(0.5);
        }

        .qx:hover {
            transform: skew(45deg, 45deg);
        }

        p{
            text-align: center;
        }
    </style>
</head>

<body>
    <p>鼠标悬停到图形上可显示</p>
    <div class="xz">

    </div>
    <div class="py">

    </div>
    <div class="sf">

    </div>
    <div class="qx">

    </div>
</body>

</html>